package org.hishenframework.core.data.jdbc.template;

class TableSequence {
	
	private String pkColumnValue;
	private long value;
	
	public TableSequence(String pkColumnValue, long value) {
		this.pkColumnValue = pkColumnValue;
		this.value = value;
	}
	
	/**
	 * 增加序列
	 * @param allocationSize
	 */
	public void add(int allocationSize) {
		value += allocationSize;
	}
	
	public String getPkColumnValue() {
		return pkColumnValue;
	}
	public void setPkColumnValue(String pkColumnValue) {
		this.pkColumnValue = pkColumnValue;
	}
	public long getValue() {
		return value;
	}
	public void setValue(long value) {
		this.value = value;
	}
}
